package com.wisemoresystem.seal.action.detail;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.wisemoresystem.seal.base.action.ProjBaseAction;
import com.wisemoresystem.seal.service.AllKindsOfDetailService;
import com.wisemoresystem.seal.web.WebTools;

/**
 * 印章下发明细
 * 
 * @author hxj
 */
@Controller("ixSealPushDetail")
@Scope("prototype")
@RequestMapping("/ix/detail/seal/push")
public class SealPushAction extends ProjBaseAction {

	@Autowired
	private AllKindsOfDetailService service;
	/**
	 * 印章下发明细列表
	 * @param srh_uname
	 * @param srh_name  印章名称
	 * @param srh_start 开始时间
	 * @param srh_end	结束时间
	 * @return
	 */
	@RequestMapping("/list")
	public ModelAndView list(String srh_uname, String srh_name,
			String srh_start, String srh_end) {

		List<Map<String, Object>> list = service.selectSealPushlList(srh_uname,
				srh_name, srh_start, srh_end, page);

		ModelAndView mv = new ModelAndView("jsp/detail/seal/push/list");
		mv.addObject("list", list);
		mv.addObject("bank_id", WebTools.getCurrentBankId());
		return mv;
	}

}
